<?php header ("Content-Type:text/xml"); ?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<tours>
	<tourcontainer title="<?php echo $title; ?>" days="<?php echo $days; ?>" nights="<?php echo $nights; ?>" home="<?php echo $home; ?>" ekskurs1="<?php echo $e1; ?>"  ekskurs2="<?php echo $e2; ?>"  ekskurs3="<?php echo $e3; ?>"  ekskurs4="<?php echo $e4; ?>"  ekskurs5="<?php echo $e5; ?>"  ekskurs6="<?php echo $e6; ?>" podarok="<?php echo $podarok; ?>" photo="<?php echo $photo; ?>">
		<yearitem value="<?php echo $year; ?>">
			<monthitem value="<?php echo $month; ?>" >
			<?php foreach($arraydays as $key=>$day):?>
				<dayitem value="<?php echo $key; ?>">
				<?php foreach($day as $key=>$value):?>
						<hotelitem stars="<?php echo $key; ?>">
							<priceitem type="single" value="<?php echo $value['SNGL']; ?>"/>
							<priceitem type="double" value="<?php echo $value['DBL']; ?>"/>
							<priceitem type="triple" value="<?php echo $value['TRPL']; ?>"/>
							<priceitem type="child"  value="<?php echo $value['CHLD']; ?>"/>
							<priceitem type="dinner" value="<?php echo $value['HB']; ?>"/>
						</hotelitem>
					<?php  endforeach; ?>
				</dayitem>
				<?php  endforeach; ?>
			</monthitem>
		</yearitem>
	</tourcontainer>
</tours>
